/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package editor;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Relationship</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link editor.Relationship#getOccurrence <em>Occurrence</em>}</li>
 *   <li>{@link editor.Relationship#getSourceRelationship <em>Source Relationship</em>}</li>
 *   <li>{@link editor.Relationship#getTargetRelationship <em>Target Relationship</em>}</li>
 * </ul>
 * </p>
 *
 * @see editor.EditorPackage#getRelationship()
 * @model annotation="gmf.link label='occurrence' style='solid' label.readOnly='true' source='sourceRelationship' target='targetRelationship' target.decoration='arrow'"
 * @generated
 */
public interface Relationship extends EObject {
	/**
   * Returns the value of the '<em><b>Occurrence</b></em>' attribute.
   * The literals are from the enumeration {@link editor.Occurrence}.
   * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Occurrence</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
   * @return the value of the '<em>Occurrence</em>' attribute.
   * @see editor.Occurrence
   * @see #setOccurrence(Occurrence)
   * @see editor.EditorPackage#getRelationship_Occurrence()
   * @model required="true"
   * @generated
   */
	Occurrence getOccurrence();

	/**
   * Sets the value of the '{@link editor.Relationship#getOccurrence <em>Occurrence</em>}' attribute.
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @param value the new value of the '<em>Occurrence</em>' attribute.
   * @see editor.Occurrence
   * @see #getOccurrence()
   * @generated
   */
	void setOccurrence(Occurrence value);

	/**
   * Returns the value of the '<em><b>Source Relationship</b></em>' reference.
   * It is bidirectional and its opposite is '{@link editor.Node#getOutgoingNode <em>Outgoing Node</em>}'.
   * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Source Relationship</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
   * @return the value of the '<em>Source Relationship</em>' reference.
   * @see #setSourceRelationship(Node)
   * @see editor.EditorPackage#getRelationship_SourceRelationship()
   * @see editor.Node#getOutgoingNode
   * @model opposite="outgoingNode" required="true"
   * @generated
   */
	Node getSourceRelationship();

	/**
   * Sets the value of the '{@link editor.Relationship#getSourceRelationship <em>Source Relationship</em>}' reference.
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @param value the new value of the '<em>Source Relationship</em>' reference.
   * @see #getSourceRelationship()
   * @generated
   */
	void setSourceRelationship(Node value);

	/**
   * Returns the value of the '<em><b>Target Relationship</b></em>' reference.
   * It is bidirectional and its opposite is '{@link editor.Node#getIncomingNode <em>Incoming Node</em>}'.
   * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Target Relationship</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
   * @return the value of the '<em>Target Relationship</em>' reference.
   * @see #setTargetRelationship(Node)
   * @see editor.EditorPackage#getRelationship_TargetRelationship()
   * @see editor.Node#getIncomingNode
   * @model opposite="incomingNode" required="true"
   * @generated
   */
	Node getTargetRelationship();

	/**
   * Sets the value of the '{@link editor.Relationship#getTargetRelationship <em>Target Relationship</em>}' reference.
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @param value the new value of the '<em>Target Relationship</em>' reference.
   * @see #getTargetRelationship()
   * @generated
   */
	void setTargetRelationship(Node value);

} // Relationship
